package com.que.owen.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @ClassName User
 * @Author Owen.Que
 * @Description
 * @Date 8/29/2018 14:34
 **/
@NoArgsConstructor
@EqualsAndHashCode
@AllArgsConstructor
@Data
public class User {
    @NotBlank(message = "user name is blank. ")
    private String name;
    @ApiModelProperty(value = "user age",required = true)
    private Integer age;
    private String gender;


}
